<?php
require_once "weixin_info.php";
require_once "config.php";
$sale_sql = $mysql->query('select * from dyspw_salesman where u_id = '.$_SESSION['Member_info'][0]['id']);
$sale = $sale_sql->fetch_all(MYSQLI_ASSOC);
 ?>
 <!doctype html>
 <html>

 <head>
     <meta charset="utf-8">
     <meta name="viewport"
         content="height=device-height,width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no" />
     <meta content="telephone=no" name="format-detection" />
     <link rel="stylesheet" type="text/css" href="css/invite.css">
     <title>邀请好友</title>

 </head>

 <body>
     <div id="content" class="inviteMain">
         <div class="invite">
             <p class="inviteImg" style="position: relative;">
                 <img src="images/invite.png" alt="" >
                 <img src="<?php echo $sale[0]['invite_img'] ?>" alt="" style="position: absolute;bottom: 30px;width: 80px;left: 50%;transform: translateX(-50%);">
             </p>
             <p class="total">
                 累计成功邀请<span class="invNum"><?php echo $sale[0]['invite_num'] ?></span>
             </p>
             <div class="divBtn">
                 <p>分享专属海报</p>
                 <p>分享链接</p>
             </div>
             <div class="explain">

                 <div class="int">  <p class="exImg"><img src="img/2.png" alt=""></p>成功邀请的粉丝每招募一家商家，您都能从中获利哦！</div>
             </div>
             <p class="invCode">邀请码：<span><?php echo $sale[0]['invite_code'] ?></span> <span class="copy">复制</span></p>
         </div>
         <div class="rule">
             <p id="title">邀请规则</p>
             <p>
                 【方式1】分享邀请海报，粉丝可以识别海报二维
                 码登录app并注册；
             </p>
             <p>【方式2】分享邀请链接给粉丝并注册；</p>
             <p id="speExpalain">
                 粉丝登录app并使用您的邀请码成功注册，TA将永远成为您的
                 粉丝，TA找募的商家以及他的粉丝招募的商家您都可以获得
                 返利，并自动计入您的账户中。
             </p>
         </div>

     </div>
     </div>

 </body>

 </html>
